package com.ruoyi.plugin.office.word.config;

import lombok.Data;


/**
 * @author wjsmc
 * @date 2025/4/19 10:53
 * @description
 **/
@Data
public class WordThesisConfig {
    // 页面设置
    private PageSetup page;
    // 标题样式
    private TitleStyle title1;
    private TitleStyle title2;
    private TitleStyle title3;
    // 正文样式
    private BodyStyle body;

    // 嵌套配置类
    @Data
    public static class PageSetup {
        private String paperSize = "A4";
        private String orientation = "portrait";
        private Margins margins;
        private HeaderFooter header;
        private HeaderFooter footer;

    }

    @Data
    public static class Margins {
        private double top;
        private double bottom;
        private double left;
        private double right;

    }

    @Data
    public static class HeaderFooter {
        private double height;
        private String font;
        private int fontSize;

    }

    @Data
    public static class TitleStyle {
        private String font;
        private int fontSize;
        private double lineSpacing;
        private double charSpacing;
        private double spacingBeforeAfter;

    }

    @Data
    public static class BodyStyle {
        private String chineseFont;
        private String englishFont;
        private int fontSize;
        private double lineSpacing;
        private double charSpacing;

    }
}
